session.write( req.getResultResponse() );
    public void handleExtendedOperation( IoSession session, SessionRegistry registry, ExtendedRequest req ) throws Exception    {        Control[] connCtls = ( Control[] ) req.getControls().values().toArray( new Control[ req.getControls().size() ] );        LdapContext serverLdapContext = ( LdapContext ) registry.getLdapContext( session, connCtls, false);        StoredProcedure spBean = decodeBean( req.getPayload() );                LanguageSpecificStoredProceureExtendedOperationHandler handler = null;                /**         * TODO This part may be replaced by a better handler determiner.         */        if ( spBean.getLanguage().equalsIgnoreCase( "Java" ) )        {            handler = new JavaStoredProcedureExtendedOperationHandler();            handler.handleStoredProcedureExtendedOperation( serverLdapContext, spBean );        }    }