"", MatchType.PREFIX, Occurance.MUST_NOT_OCCUR)
.addFieldClause(EnvironmentState.FIELD_NAME_ENDPOINT_TYPE,
endpoint.endpointType)
.build())
.build());
<BUG>if (networkProfileLinks != null && !networkProfileLinks.isEmpty()) {
query = query.addInClause(EnvironmentState.FIELD_NAME_NETWORK_PROFILE_LINK,

networkProfileLinks);</BUG>
}

"", MatchType.PREFIX, Occurance.MUST_NOT_OCCUR)
.addFieldClause(EnvironmentState.FIELD_NAME_ENDPOINT_TYPE,
endpoint.endpointType)
.build())
.build());
if (environmentLinks != null && !environmentLinks.isEmpty()) {
query = query.addInClause(EnvironmentState.FIELD_NAME_SELF_LINK, environmentLinks);
}
