*/
public static JobParameters convertJobParametersType(JobParametersType type) {
Map<String, JobParameter> map = new HashMap<String, JobParameter>();
for(Entry<String, JobParameterType> entry : type.parameters.entrySet()) {
ParameterType parameterType = entry.getValue().parameterType;
if(parameterType == ParameterType.DATE) {
if(entry.getValue().parameter instanceof Integer) {
map.put(entry.getKey(), new JobParameter(new Date((Integer)entry.getValue().parameter)));
} else if(entry.getValue().parameter instanceof Long) {
map.put(entry.getKey(), new JobParameter(new Date((Long)entry.getValue().parameter)));