minor cleanup on customComponent sample

+review REVIEW-5208