//
// make sure this is a valid member of the group
//
if (!isMatch(epr))
throw new AddRefusedFault(_MESSAGES.get("ContentCreationFailed"));
ResourceManager manager = sg.getResourceManager();
String endpoint = getEntryContextPath();
WsResource resource = null;
try
{
resource = (WsResource)manager.createResource(endpoint);
}
catch (SoapFault error)
{
throw new ResourceInitializationFault(error);
}
//
// make sure the entry resource can process termination time, if
// one exists. if it can't, the request was invalid.
//
// NOTE: we do NOT shutdown() the resource because it has not
// been initialize()d yet.
//
if (termination != null && !resource.hasCapability(WsrlConstants.SCHEDULED_TERMINATION_URI))
{
Object[] filler = { endpoint, WsrlConstants.SCHEDULED_TERMINATION_URI };
throw new AddRefusedFault(_MESSAGES.get("NoWSRL", filler));
}
//
// set the sg entry fields before initializing the entry resource
//