return copyConstCharIntoByteArray(env, (*(ApplicationInfo::cApplication::Ptr *)nativeData)->GetName(0)->name.c_str()); return copyConstCharIntoByteArray(env, "Unknown");
name=app.Get()->GetName(0)->name.c_str(); else name="Unknown"; return JNI::String(name).toJavaString();
jbyteArray Java_org_dvb_application_MHPApplication_name(JNIEnv* env, jobject obj, jlong nativeData) {   int num=(*(ApplicationInfo::cApplication::Ptr *)nativeData)->GetNumberOfNames();   if (num)      return copyConstCharIntoByteArray(env, (*(ApplicationInfo::cApplication::Ptr *)nativeData)->GetName(0)->name.c_str()); //return first name   return copyConstCharIntoByteArray(env, "Unknown");}