Bug:SubscriptionModelLoader.getFileContentAsString
[cps.git] / cps-ncmp-service / src / main / java / org / onap / cps / ncmp / init / SubscriptionModelLoader.java
index 6713491..17413ba 100644 (file)
@@ -109,7 +109,7 @@ public class SubscriptionModelLoader implements ModelLoader {
     }
 
     private String getFileContentAsString() {
-        try (InputStream inputStream = ClassLoader.getSystemClassLoader()
+        try (InputStream inputStream = getClass().getClassLoader()
                 .getResourceAsStream("model/subscription.yang")) {
             return new String(inputStream.readAllBytes(), StandardCharsets.UTF_8);
         } catch (final Exception exception) {