private void generateModels() {
ShapesFactory fact = ShapesFactory.getInstance(ModelShape.class);
String path = getPath();
for (Object omodel : fact.getElements()) {
ModelShape sm = (ModelShape)omodel;
String filePath = path + "/model/";
File fp = new File(filePath);
if (!fp.exists())
fp.mkdirs();
velocityContext.put("model", sm);
generateCode("velocity/Model.vm", filePath + sm.getPropertyValue(ShapeConstants.NAME) + "Store.js");
}
velocityContext.remove("model");
}