* @param workflowApp workflow xml
* @param cluster cluster entity
*/
protected void addHCatalogCredentials(WORKFLOWAPP workflowApp, Cluster cluster,
String credentialName) {
CREDENTIALS credentials = workflowApp.getCredentials();
if (credentials == null) {
credentials = new CREDENTIALS();
}
credentials.getCredential().add(createHCatalogCredential(cluster, credentialName));
// add credential for workflow
workflowApp.setCredentials(credentials);
}