Add config for java