import assert from 'assert';
import { createBaseNeedle } from '../../base/support/needles.js';
export function insertContentIntoApplicationProperties(application, needles) {
    if (needles) {
        assert.ok(this, 'Generator context is required');
        return createBaseNeedle.call(this, {
            filePath: `${application.javaPackageSrcDir}config/ApplicationProperties.java`,
            needlesPrefix: 'application-properties',
        }, needles);
    }
    return createBaseNeedle({
        needlesPrefix: 'application-properties',
    }, application);
}
