added codes to Response Factory Base. Factory can implement if needed.