// Handle the various steps in the image reference resolution
if (imageStyle == MCSMenuImageStyleKeywords.ROLLOVER) {
// A rollover menu has been specified
if (exists(rolloverImage)) {
// There is a rollover image specified so this will be used
RolloverComponentReference reference =
createRolloverComponentReference(pageContext,
rolloverImage);
normal = reference.getNormal();
over = reference.getOver();
} else {
// No rollover has been specified, so set the normal
// and over references independently.
if (exists(offImage)) {
normal = createImageAssetReference(pageContext, offImage);