}
@SuppressWarnings( { "unchecked", "rawtypes" } )
public Model read(final Reader input, final Map<String, ?> options) throws IOException, ModelParseException {
assert manager != null;
ModelSource source = (ModelSource) options.get( ModelProcessor.SOURCE );
if ( ( "" + source ).contains( ".tesla." ) ) {
System.out.println( source.getLocation() );
File pom = new File( source.getLocation() );
source = new FileModelSource( new File( pom.getPath().replaceFirst( "[.]tesla[.]", "" ) ) );
((Map)options).put( ModelProcessor.SOURCE, source );
ModelReader reader = manager.getReaderFor(options);
Model model = reader.read(source.getInputStream(), options);
MavenXpp3Writer xmlWriter = new MavenXpp3Writer();
StringWriter xml = new StringWriter();
xmlWriter.write( xml, model );