Source:
<code>protected Object execute(Object[] data) { if (data == null) { throw new ExecutionPlanRuntimeException("Data can not be null."); } hashMap = (HashMap) data[0]; String type = (String) data[2]; Object tmpVal = hashMap.get(data[1]); Object value = null; if (type.toLowerCase().equals("int")) { try { String tmpStr = tmpVal.toString(); value = Integer.parseInt(tmpStr); <START> } catch (ExecutionPlanRuntimeException e) { <END> throw new ExecutionPlanRuntimeException("Attribute value cannot be parsed to INTEGER"); } } else if (type.toLowerCase().equals("double")) { try { String tmpStr = tmpVal.toString(); value = Double.parseDouble(tmpStr); } catch (ExecutionPlanRuntimeException e) { throw new ExecutionPlanRuntimeException("Attribute value cannot be parsed to DOUBLE"); } } else if (type.toLowerCase().equals("long")) { try { String tmpStr = tmpVal.toString(); value = Long.parseLong(tmpStr); } catch (ExecutionPlanRuntimeException e) { throw new ExecutionPlanRuntimeException("Attribute value cannot be parsed to LONG"); } } else if (type.toLowerCase().equals("bool")) { try { String tmpStr = tmpVal.toString(); value = Boolean.parseBoolean(tmpStr); } catch (ExecutionPlanRuntimeException e) { throw new ExecutionPlanRuntimeException("Attribute value cannot be parsed to BOOLEAN"); } } else if (type.toLowerCase().equals("string")) { try { value = tmpVal.toString(); } catch (ExecutionPlanRuntimeException e) { throw new ExecutionPlanRuntimeException("Attribute value cannot be converted to STRING"); } } else { value = tmpVal; } return value; }</code><technical_language>of lines throw ExecutionPlanRuntimeException</technical_language>

Target:
protected Object execute(Object[] data) { if (data == null) { throw new ExecutionPlanRuntimeException("Data can not be null."); } if(data[0] instanceof HashMap) { hashMap = (HashMap) data[0]; } else { throw new ExecutionPlanRuntimeException("First attribute value must be a hashmap."); } String type = (String) data[2]; Object tmpVal = hashMap.get(data[1]); Object value; String tmpStr = tmpVal.toString(); if (type.toLowerCase().equals("int")) { try { value = Integer.parseInt(tmpStr); } catch (ExecutionPlanRuntimeException e) { throw new ExecutionPlanRuntimeException("Attribute value cannot be parsed to INTEGER"); } } else if (type.toLowerCase().equals("double")) { try { value = Double.parseDouble(tmpStr); } catch (ExecutionPlanRuntimeException e) { throw new ExecutionPlanRuntimeException("Attribute value cannot be parsed to DOUBLE"); } } else if (type.toLowerCase().equals("long")) { try { value = Long.parseLong(tmpStr); } catch (ExecutionPlanRuntimeException e) { throw new ExecutionPlanRuntimeException("Attribute value cannot be parsed to LONG"); } } else if (type.toLowerCase().equals("bool")) { try { value = Boolean.parseBoolean(tmpStr); } catch (ExecutionPlanRuntimeException e) { throw new ExecutionPlanRuntimeException("Attribute value cannot be parsed to BOOLEAN"); } } else if (type.toLowerCase().equals("string")) { try { value = tmpVal.toString(); } catch (ExecutionPlanRuntimeException e) { throw new ExecutionPlanRuntimeException("Attribute value cannot be converted to STRING"); } } else { value = tmpVal; } return value; }