@Override
public void syncFromMetadata() {
// Start with a clean, empty metadata file.
// In the event of a parse error from the raw XML, display this empty element
apexComponentMetadata = new ApexComponent();
try {
apexComponentMetadata = unmarshall(getTextFromMetadataEditor(), ApexComponent.class);
} catch (Exception e) {
logger.debug("Error trying to sync from Metadata tab for Apex property sheet: ", e);