test_class.file: common-utils/src/test/java/com/stnetix/ariaddna/commonutils/mavenutil/MavenUtilTest.java
test_class.identifier: MavenUtilTest
test_case.body: @Test
      public void getCurrentVersion() throws Exception {
          String version = MavenUtil.getCurrentVersion();
          assertEquals(version, "1.0-SNAPSHOT");
      }
test_case.class_method_signature: MavenUtilTest.getCurrentVersion()
test_case.full_signature: @Test public void getCurrentVersion()
test_case.identifier: getCurrentVersion
test_case.invocations: getCurrentVersion assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void getCurrentVersion()
focal_class.declarator: LOGGER = AriaddnaLogger.getLogger(MavenUtil.class)
focal_class.modifier: private static final
focal_class.original_string: private static final AriaddnaLogger LOGGER = AriaddnaLogger.getLogger(MavenUtil.class);
focal_class.type: AriaddnaLogger
focal_class.var_name: LOGGER
focal_class.file: common-utils/src/main/java/com/stnetix/ariaddna/commonutils/mavenutil/MavenUtil.java
focal_class.identifier: MavenUtil
focal_class.class_method_signature: MavenUtil.MavenUtil()
focal_class.full_signature: private  MavenUtil()
focal_class.identifier: MavenUtil
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.signature:  MavenUtil()
focal_class.class_method_signature: MavenUtil.getCurrentVersion()
focal_class.full_signature: public static String getCurrentVersion()
focal_class.identifier: getCurrentVersion
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getCurrentVersion()
focal_method.body: public static String getCurrentVersion() {
          Model model = null;
          try {
              MavenXpp3Reader reader = new MavenXpp3Reader();
              if ((new File("pom.xml")).exists()) {
                  model = reader.read(new FileReader("pom.xml"));
              } else {
                  model = reader.read(new InputStreamReader(MavenUtil.class.getResourceAsStream(
                          "/META-INF/maven/com.stnetix.ariaddna/common-utils/pom.xml")));
              }
  
          } catch (IOException e) {
              LOGGER.error("Can't read Pom.xml file. Exception message is: ", e.getMessage());
          } catch (XmlPullParserException e) {
              LOGGER.error("Can't parse Pom.xml file. Exception message is: ", e.getMessage());
          }
          return model != null ? model.getParent().getVersion() : "0.0.0";
      }
focal_method.class_method_signature: MavenUtil.getCurrentVersion()
focal_method.full_signature: public static String getCurrentVersion()
focal_method.identifier: getCurrentVersion
focal_method.invocations: exists read read getResourceAsStream error getMessage error getMessage getVersion getParent
focal_method.modifiers: public static
focal_method.parameters: ()
focal_method.return: String
focal_method.signature: String getCurrentVersion()