/**
* @param args
*/
public static void main(String[] args) throws Exception {
readCmdArgs(args);
Model model = (Model) load(inFile).get(0);
Class umlClass = (Class) model.getOwnedMembers().get(0).getOwnedElements().get(0);
Property umlProperty = (Property) umlClass.getOwnedAttributes().get(0);
//initialize OCL stuff
OCL ocl = OCL.newInstance();
Helper helper = ocl.createOCLHelper();
out(OCL.initialize(OCLParser.RESOURCE_SET));
helper.setAttributeContext(umlClass, umlProperty);
helper.setContext((Classifier) model.getOwnedMembers().get(0).getOwnedElements().get(0));
out("The following elements are contained in the class:");
out(model.getOwnedMembers().get(0).getOwnedElements().get(0).toString());
out(helper.getEnvironment().getVariables().size()+"");
out("Variables within the context:");
for (Variable<Classifier, ?> v : helper.getEnvironment().getVariables()){
out(v.toString());
//out(v.getRepresentedParameter());