@Deprecated
	protected List<GenPackage> loadReferencedGenModels(ResourceSet rs) {
		List<GenPackage> result = Lists.newArrayList();
		if (getReferencedGenModels() != null) {
			for (String uri : getReferencedGenModels().split(",")) {
				try {
					Resource resource = rs.getResource(URI.createURI(uri.trim()), true);
					GenModel genmodel = (GenModel) resource.getContents().get(0);
					EList<GenPackage> genPackages = genmodel.getGenPackages();
					for (GenPackage genPackage : genPackages) {
						genPackage.getEcorePackage().getEClassifiers();
						result.add(genPackage);
					}
				} catch (Exception e) {
					log.error("Couldn't find genmodel for uri '" + uri + "'");
					throw new WrappedException(e);
				}
			}
		}
		return result;
	}
@ Deprecated protected List < GenPackage > loadReferencedGenModels ( ResourceSet rs ) { List < GenPackage > result = Lists . newArrayList ( ) ; if ( getReferencedGenModels ( ) != null ) { for ( String uri : getReferencedGenModels ( ) . split ( "," ) ) { try { Resource resource = rs . getResource ( URI . createURI ( uri . trim ( ) ) , true ) ; GenModel genmodel = ( GenModel ) resource . getContents ( ) . get ( 0 ) ; EList < GenPackage > genPackages = genmodel . getGenPackages ( ) ; for ( GenPackage genPackage : genPackages ) { genPackage . getEcorePackage ( ) . getEClassifiers ( ) ; result . add ( genPackage ) ; } } catch ( Exception e ) { log . error ( "Couldn't find genmodel for uri '" + uri + "'" ) ; throw new WrappedException ( e ) ; } } } return result ; }
Use {@link GenModelAccess#getGenPackage(EPackage, ResourceSet)}