Try first from current ClassLoader when simulationClass is forced, close #1082
Use IOUtils.copy instead of custom code