private void verifySuccess(Result result) throws LdapOperationFailedException {
  ResultCode resultCode=result.getResultCode();
  if (resultCode.isExceptional()) {
    throw new LdapOperationFailedException(result);
  }
}

private void verifySuccess ( Result result ) throws LdapOperationFailedException { ResultCode resultCode = result . getResultCode ( ) ; if ( resultCode . isExceptional ( ) ) { throw new LdapOperationFailedException ( result ) ; } }
verify if the result was successful .
