Use static extensions in the java extensions