Adding an extension method because this WebMethod is used by the Web Application