class LiquibaseChangeLogSyncToTagMojo extends AbstractLiquibaseChangeLogMojo {

	/**
	 * Update to the changeSet with the given tag command.
	 * @parameter property="liquibase.toTag"
	 */
    @PropertyElement
	protected String toTag;

    @Override
    protected void checkRequiredParametersAreSpecified() throws MojoFailureException {<FILL_FUNCTION_BODY>}

    @Override
    protected void performLiquibaseTask(Liquibase liquibase)
             throws LiquibaseException {
        super.performLiquibaseTask(liquibase);
        liquibase.changeLogSync(toTag, new Contexts(contexts), new LabelExpression(getLabelFilter()));
    }
}

        if (toTag == null || toTag.isEmpty()) {
            throw new MojoFailureException("\nYou must specify a changelog tag.");
        }
    
<methods>public non-sealed void <init>() ,public java.lang.String getLabelFilter() <variables>protected java.lang.String changeLogDirectory,protected java.lang.String changeLogFile,protected java.lang.String contexts,protected java.lang.String duplicateFileMode,protected java.lang.String labelFilter,protected java.lang.String labels