return copyConstCharIntoByteArray(env, shortName[0] ? shortName : name);
return JNI::String(*shortName ? shortName : name);
jbyteArray Java_org_dvb_si_SIBouquetImpl_shortBouquetName(JNIEnv* env, jobject obj, jlong nativeData) {   std::list<DvbSi::BAT> *list=(std::list<DvbSi::BAT> *)nativeData;   for (std::list<DvbSi::BAT>::iterator stlit=list->begin(); stlit != list->end(); ++stlit) {      char name[256];      char shortName[256];      stlit->getBouquetName(name, shortName,sizeof(name), sizeof(shortName));      if (name[0])         //currently returns the full name if no short name is available.         //I can't say if this is according to the spec.         return copyConstCharIntoByteArray(env, shortName[0] ? shortName : name);   }   return copyConstCharIntoByteArray(env, "");}