Moved static into body of java code