remove the common java snippets