+
+ }
+ }
+
+ public static List<Motor> load( InputStream is, String fileName ) {
+ GeneralMotorLoader loader = new GeneralMotorLoader();
+ try {
+ List<Motor> motors = loader.load(is, fileName);
+ if (motors.size() == 0) {
+ log.warn("No motors found in file " + fileName);
+ }
+ return motors;
+ } catch (IOException e) {
+ log.warn("IOException when loading motor file " + fileName, e);