private JsonNode parseLanguageResource(Resource resource) throws IOException {
  InputStream stream=resource.asStream();
  if (stream == null)   return null;
  try {
    JsonNode tree=mapper.readTree(stream);
    return tree;
  }
  finally {
    stream.close();
  }
}

private JsonNode parseLanguageResource ( Resource resource ) throws IOException { InputStream stream = resource . asStream ( ) ; if ( stream == null ) return null ; try { JsonNode tree = mapper . readTree ( stream ) ; return tree ; } finally { stream . close ( ) ; } }
parses the given language resource , returning the resulting jsonnode . if the resource cannot be read because it does not exist , null is returned .
