// tries to apply the change immediately, rather than storing it
// in a field and setting it during initialization)
//
if (sub.hasCapability(WsrlConstants.SCHEDULED_TERMINATION_URI))
{
ScheduledTermination wsrl = (ScheduledTermination)sub.getCapability(WsrlConstants.SCHEDULED_TERMINATION_URI);
try
{
wsrl.setTerminationTime(terminationTime);
}
catch (BaseFault error)
{
throw new UnacceptableInitialTerminationTimeFault(error);