Olá Rajesh,
Corrigi o UDF, por favor, teste isso:
DynamicConfiguration conf = (DynamicConfiguration)
container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create(" http://sap.com/xi/XI/System/File ","SourceFileTimestamp");
String timestamp= conf.get(key);
String Str= timestamp;
String date= Str.substring(0, 8);
String year= date.substring(0, 4);
String month= date.substring(4, 6);
String day= date.substring(6);
String time= Str.substring(8,16);
String hours= time.substring(1,3);
String mins= time.substring(3,5);
String secs= time.substring(5,7);
String date1= year + month + day;
String time1= hours+":"+mins+":"+secs;
timestamp = date1 + " " + time1;
return timestamp;