{
GracefulShutdownDecoder decoder = new GracefulShutdownDecoder();
try
{
GracefulShutdown gs = (GracefulShutdown) decoder.decode( requestValue );
if ( requestValue != null )
{
this.requestValue = new byte[requestValue.length];
System.arraycopy( requestValue, 0, this.requestValue, 0, requestValue.length );
}
else
{
this.requestValue = null;
}
this.timeOffline = gs.getTimeOffline();
this.delay = gs.getDelay();
}
catch ( DecoderException e )
{
LOG.error( I18n.err( I18n.ERR_04165 ), e );
throw new RuntimeException( e );