}
if (communityId == null || communityId.isEmpty()) {
if (requestMessage.getPRPAIN201305UV02().getSender() != null
&& requestMessage.getPRPAIN201305UV02().getSender().getDevice() != null
&& requestMessage.getPRPAIN201305UV02().getSender().getDevice().getId() != null
<BUG>&& requestMessage.getPRPAIN201305UV02().getSender().getDevice().getId().size() > 0
</BUG>
&& requestMessage.getPRPAIN201305UV02().getSender().getDevice().getId().get(0) != null
&& requestMessage.getPRPAIN201305UV02().getSender().getDevice().getId().get(0)
.getRoot() != null) {

}
if (communityId == null || communityId.isEmpty()) {
if (requestMessage.getPRPAIN201305UV02().getSender() != null
&& requestMessage.getPRPAIN201305UV02().getSender().getDevice() != null
&& requestMessage.getPRPAIN201305UV02().getSender().getDevice().getId() != null
&& !requestMessage.getPRPAIN201305UV02().getSender().getDevice().getId().isEmpty()
&& requestMessage.getPRPAIN201305UV02().getSender().getDevice().getId().get(0) != null
&& requestMessage.getPRPAIN201305UV02().getSender().getDevice().getId().get(0)
.getRoot() != null) {
