CreateParamsType createparams )
throws Exception
{
Context initialContext = new InitialContext( );
ApplicationHome home = (ApplicationHome) initialContext.lookup( ApplicationHome.HOME_LOCATION );
ApplicationResource resource = (ApplicationResource) home.create( context, createparams );
ResourceadminHome aHome = (ResourceadminHome) getResourceContext().getResourceHome( );
aHome.getResources( ).put( resource.getID( ),
resource );
return resource.getEndpointReference( );
}