Fixing compilation issues in POJOs