jbyteArray Java_org_dvb_application_MHPApplication_name(JNIEnv* env, jobject obj, jlong nativeData) { int num=(*(ApplicationInfo::cApplication::Ptr *)nativeData)->GetNumberOfNames();
jstring Java_org_dvb_application_MHPApplication_name(JNIEnv* env, jobject obj, jobject nativeData) { NativeApplicationData app(nativeData); int num=app.Get()->GetNumberOfNames(); const char *name;
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");}