@SuppressWarnings("all")
public class MediaPartTpl implements Generator<DynamicFile> {
public InputStream generate(final DynamicFile file, final Map<String,Object> data) {
EObject _eContainer = file.eContainer();
final CompilationUnit cu = ((CompilationUnit) _eContainer);
String _packagename = cu.getPackagename();
String _packagename_1 = cu.getPackagename();
int _lastIndexOf = _packagename_1.lastIndexOf(".");
String _substring = _packagename.substring(0, _lastIndexOf);
final String modelPackage = (_substring + ".model");
String _packagename_2 = cu.getPackagename();
String _packagename_3 = cu.getPackagename();
int _lastIndexOf_1 = _packagename_3.lastIndexOf(".");
String _substring_1 = _packagename_2.substring(0, _lastIndexOf_1);
final String handlersPackage = (_substring_1 + ".handlers");
String _packagename_4 = cu.getPackagename();
CharSequence _generate = this.generate(_packagename_4, modelPackage, handlersPackage);
String _string = _generate.toString();
byte[] _bytes = _string.getBytes();
ByteArrayInputStream _byteArrayInputStream = new ByteArrayInputStream(_bytes);
return _byteArrayInputStream;