Added helpmethod for exist check and javadoc.