Java did not work well with inner classes across scopes..