import * as _ from 'lodash-es';
import { getMicroserviceAppName } from '../../base/support/index.mjs';
const { upperFirst } = _;
export const getMainClassName = ({ baseName }) => {
    const main = upperFirst(getMicroserviceAppName({ microserviceName: baseName }));
    const acceptableForJava = new RegExp('^[A-Z][a-zA-Z0-9_]*$');
    return acceptableForJava.test(main) ? main : 'Application';
};
