{
Calendar.class
} );
}
SetTerminationTime termTime = SetTerminationTime.Factory.newInstance( );
// Make sure we destroy it after setting the resource property in case the subclass wants the
// correct value in an overriden destroy method.
boolean destroyIt = false;
// Nil means no termination time.
if ( newTime == null )
{
termTime.setNilRequestedTerminationTime( );
}
else
{
// If newTime is in the past destroy immediately.
if ( newTime.before( Calendar.getInstance( ) ) )
{
destroyIt = true;
}
termTime.setRequestedTerminationTime( newTime );
}
m_setTerminationTimeMethod.invoke( getPropertiesXmlBean( ),
new Object[]
{
termTime.getRequestedTerminationTime( )
} );
if ( destroyIt )
{
destroy( );