Attributes entry = nexus.lookup( newEntryName ); Attribute deleted = entry.get( Constants.ENTRY_DELETED ); Object value = deleted == null ? null : deleted.get();   if ( value != null && "true".equalsIgnoreCase( value.toString() ) ) { return; }
    private void checkBeforeAdd( LdapDN newEntryName ) throws NamingException    {        if ( nexus.hasEntry( newEntryName ) )        {            throw new NameAlreadyBoundException( newEntryName.toString() + " already exists." );        }    }