public static boolean containsResultEntry(final SearchResponse response) {
        return response != null && response.getEntry() != null;
    }
Checks to see if response has a result.

@param response the response
@return true, if successful
support/cas-server-support-ldap-core/src/main/java/org/apereo/cas/util/LdapUtils.java