public EndpointReference createIntegretionServer( ResourceContext context,
CreateParamsType createparams )
throws Exception
{
Context initialContext = new InitialContext( );
IntegrationserverHome home =
(IntegrationserverHome) initialContext.lookup( IntegrationserverHome.HOME_LOCATION );
IntegrationserverResource resource = (IntegrationserverResource) home.create( context, createparams );
ResourceadminHome aHome = (ResourceadminHome) context.getResourceHome( );
aHome.getResources( ).put( resource.getID( ),
resource );
return resource.getEndpointReference( );
}