BuildNumber () { BuildNumber build = getBuild(); if (LOG.isDebugEnabled()) { LOG.debug("getApiVersionAsNumber: build=" + build.asString()); } if (myApiVersion != null) { if (LOG.isDebugEnabled()) { LOG.debug("getApiVersionAsNumber: myApiVersion=" + build.asString()); } BuildNumber api = BuildNumber.fromStringWithProductCode(myApiVersion, build.getProductCode()); if (api != null) { return api; } } return build; }