code: private void applyAliases(Map<FieldType, String> aliases)
     {
        CustomFieldContainer fields = m_project.getCustomFields();
        for (Map.Entry<FieldType, String> entry : aliases.entrySet())
        {
           fields.getCustomField(entry.getKey()).setAlias(entry.getValue());
        }
     }
docs: Apply aliases to task and resource fields.
  
  @param aliases map of aliases