common for java