</BUG>
&& requestMessage.getPRPAIN201305UV02().getReceiver().get(0) != null
&& requestMessage.getPRPAIN201305UV02().getReceiver().get(0).getDevice() != null
&& requestMessage.getPRPAIN201305UV02().getReceiver().get(0).getDevice().getId() != null
<BUG>&& requestMessage.getPRPAIN201305UV02().getReceiver().get(0).getDevice().getId().size() > 0
</BUG>
&& requestMessage.getPRPAIN201305UV02().getReceiver().get(0).getDevice().getId()
.get(0) != null
&& requestMessage.getPRPAIN201305UV02().getReceiver().get(0).getDevice().getId().get(0)
.getRoot() != null) {

communityId = requestMessage.getPRPAIN201305UV02().getReceiver().get(0).getDevice().getAsAgent()
.getValue().getRepresentedOrganization().getValue().getId().get(0).getRoot();
}
if (communityId == null || communityId.isEmpty()) {
if (requestMessage.getPRPAIN201305UV02().getReceiver() != null
&& !requestMessage.getPRPAIN201305UV02().getReceiver().isEmpty()
&& requestMessage.getPRPAIN201305UV02().getReceiver().get(0) != null
&& requestMessage.getPRPAIN201305UV02().getReceiver().get(0).getDevice() != null
&& requestMessage.getPRPAIN201305UV02().getReceiver().get(0).getDevice().getId() != null
&& !requestMessage.getPRPAIN201305UV02().getReceiver().get(0).getDevice().getId().isEmpty()
&& requestMessage.getPRPAIN201305UV02().getReceiver().get(0).getDevice().getId()
.get(0) != null
&& requestMessage.getPRPAIN201305UV02().getReceiver().get(0).getDevice().getId().get(0)
.getRoot() != null) {
