Initial revision of JavaApacheCartridge