if( !ContextPartitionNexus.ADMIN_PRINCIPAL.equals( environment.get( Context.SECURITY_PRINCIPAL ).toString() ) )
String principal = ( String ) environment.get( Context.SECURITY_PRINCIPAL ); if( principal == null || !ContextPartitionNexus.ADMIN_PRINCIPAL.equals( principal ) )
    private void checkPermissionToCreateBootstrapEntries() throws NamingException    {        if( !ContextPartitionNexus.ADMIN_PRINCIPAL.equals(                environment.get( Context.SECURITY_PRINCIPAL ).toString() ) )        {            throw new NoPermissionException(                    "Only '" + ContextPartitionNexus.ADMIN_PRINCIPAL + "' can initiate the first run." );        }    }