protected void addAcceptTypes(String types){
  if (mAcceptTypes.isEmpty()) {
    mAcceptTypes=types;
  }
 else {
    mAcceptTypes+=" " + types;
  }
}

protected void addAcceptTypes ( String types ) { if ( mAcceptTypes . isEmpty ( ) ) { mAcceptTypes = types ; } else { mAcceptTypes += " " + types ; } }
add types to accept types
