print method added for EObject
nullpointer check added for variableElement