Add source file to generated class (null pointer exception in eclipse)