refactor some methods to UmlHelper class