/*
 * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
 *
 * This program and the accompanying materials are made available under the
 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
 * and is available at http://www.eclipse.org/legal/epl-v10.html
 */


package org.opendaylight.controller.sal.binding.codegen.impl;

import org.eclipse.xtext.xbase.lib.Exceptions;

@SuppressWarnings("all")
public class BrokerImplClassLoader extends ClassLoader {
  private final ClassLoader spiClassLoader;

  public BrokerImplClassLoader(final ClassLoader model, final ClassLoader spi) {
    super(model);
    this.spiClassLoader = spi;
  }

  public Class<? extends Object> loadClass(final String name) throws ClassNotFoundException {
    try {
      return super.loadClass(name);
    } catch (ClassNotFoundException e) {
        return this.spiClassLoader.loadClass(name);
    }
  }
}

@@ -302,17 +302,16 @@
 ml%0A */%0A%0A
-%0A
 package 
@@ -369,81 +369,8 @@
 l;%0A%0A
-import org.eclipse.xtext.xbase.lib.Exceptions;%0A%0A@SuppressWarnings(%22all%22)%0A
 publ
@@ -422,16 +422,18 @@
 oader %7B%0A
+  
   privat
@@ -467,24 +467,26 @@
 sLoader;%0A%0A  
+ 
+ 
 public Broke
@@ -556,16 +556,20 @@
 ) %7B%0A    
+   
+ 
 super(mo
@@ -574,16 +574,20 @@
 model);%0A
+    
     this
@@ -613,13 +613,31 @@
 pi;%0A
+  
   %7D%0A%0A
+    @Override%0A  
   pu
@@ -726,16 +726,20 @@
 ption %7B%0A
+    
     try 
@@ -742,24 +742,30 @@
 try %7B%0A      
+     
+ 
 return super
@@ -778,24 +778,28 @@
 lass(name);%0A
+    
     %7D catch 
@@ -831,24 +831,28 @@
 ) %7B%0A        
+   
+ 
 return this.
@@ -887,16 +887,22 @@
 e);%0A    
-%7D%0A
+    %7D%0A  
   %7D%0A%7D%0A

remove dependecy on xtend